package basicTypes;

import java.sql.Date;

public class RALog {
	private int ID;
	private Integer clientID;
	private Integer resourceID;
	private String description;
	private String operation;
	private Date date;
	
	public RALog(int id, Integer client, Integer resource, String op, String desc, Date date) {
		this.ID = id;
		this.clientID = client;
		this.resourceID = resource;
		this.operation = op;
		this.description = desc;
		this.date = date;
	}
	
	public RALog(int id, Integer client, Integer resource, String op, String desc) {
		this.ID = id;
		this.clientID = client;
		this.resourceID = resource;
		this.operation = op;
		this.description = desc;
		this.date = new java.sql.Date(new java.util.Date().getTime());
	}

	public String getOperation() {
		return operation;
	}

	public int getID() {
		return ID;
	}

	public Integer getClientID() {
		return clientID;
	}

	public Integer getResourceID() {
		return resourceID;
	}

	public String getDescription() {
		return description;
	}
	
	public void setID(int newId) {
		this.ID = newId;
	}
	
	public Date getDate() {
		return date;
	}

}
